package com.gpc.hexapods.utils;

public class MathUtil {

    public static float sin(float angle) {
        return (float) Math.sin(angle / 180 * Math.PI);
    }

    public static float cos(float angle) {
        return (float) Math.cos(angle / 180 * Math.PI);
    }

    public static float tan(float angle) {
        return (float) Math.tan(angle / 180 * Math.PI);
    }

    public static float asin(float value) {
        return (float) (Math.asin(value) * 180 / Math.PI);
    }

    public static float acos(float value) {
        return (float) (Math.acos(value) * 180 / Math.PI);
    }

    public static float atan(float value) {
        return (float) (Math.atan(value) * 180 / Math.PI);
    }
}
